<template>
	<view>
		<view class="item">
			<text>企业名称</text>
			<input value="" type="text" placeholder="大连XXX有限公司" />
		</view>
		<view class="item">
			<text>企业信用编码</text>
			<input value="" type="text" placeholder="15152535643" />
		</view>
		<view class="item">
			<text>单位注册地址</text>
			<input value="" type="text" placeholder="湖南省长沙市天心区" />
		</view>
		<view class="item">
			<text>单位注册电话</text>
			<input value="" type="text" placeholder="1236125631" />
		</view>
		<view class="item">
			<text>营业执照照片</text>
			<view
				style="border: #007AFF 5rpx solid;width: 400rpx;border-radius: 50rpx;text-align: center;margin: 20rpx 0;">
				<view
					style="background-color: #007AFF;border-radius: 50%;width: 100rpx;height: 100rpx;display: flex;align-items: center;margin: 0 auto;margin-top: 20rpx;">
					<u-icon name="camera" color="#fff" size="60rpx" style="margin: 0 auto;"></u-icon>
				</view>
				<text style="color: #007AFF;line-height: 80rpx;">点击拍摄/上传国徽面</text>
			</view>
		</view>
		<view style="border-top: #e3e3e3 1rpx solid;padding-top: 20rpx; width: 100%;position: absolute;bottom: 20rpx;">
			<button @click="tijiao" type="default"
				style="background-color: #007AFF;color: #fff;border-radius: 20rpx;width: 90%;">提交认证</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			this.topage()
		},
		methods: {
			tijiao() {
				// 提交接口调用

				// 成功回调
				uni.navigateBack()
			},
			topage() {
				// 判断认证状态
				var a = 2
				// 成功回调
				if (a == 1) {
					uni.redirectTo({
						url: './underCertification'
					})
				} else if (a == 2) {
					uni.redirectTo({
						url: './businessManagement'
					})
				} else if (a == 3) {
					uni.redirectTo({
						url: './authenticationFailed'
					})
				}
			}
		}
	}
</script>

<style>
	.item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		text-align: end;
		padding-right: 30rpx;
		margin-left: 30rpx;
		line-height: 100rpx;
		border-bottom: #d4d4d4 1rpx solid;
	}
</style>
